﻿using System;

namespace Atha.Clients.ViewModels
{
	public abstract class NotificationViewModelBase : ViewModelBase
	{
		private readonly Action<NotifyViewModel> _onNotify;

		public NotificationViewModelBase(Action<NotifyViewModel> onNotify)
		{
			this._onNotify = onNotify;
		}

		protected void Notify(NotifyViewModel notifyViewModel)
		{
			if (this._onNotify != null) this._onNotify(notifyViewModel);
		}
	}
}